//
//  AppDelegate.m
//  Shopping
//
//  Created by 张湾湾 on 16/8/18.
//  Copyright © 2016年 张湾湾. All rights reserved.
//

#import "AppDelegate.h"
#import "WWMainController.h"
#import "WWNetworkTools.h"
#import "WWTestController.h"
#import "WWWelcomeViewController.h"

@interface AppDelegate ()

/**测试属性*/
@property (nonatomic,assign)BOOL isTest;


@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.isTest = YES;
    
    [self setupAppStyle];
    //创建
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    
    //跟控制器
    if (self.isTest) {
        self.window.rootViewController = [[WWMainController alloc]init];
//        self.window.rootViewController = [[WWWelcomeViewController alloc]init];
        
    }else{
        self.window.rootViewController = [[WWTestController alloc]init];

    }
    //可见
    [self.window makeKeyAndVisible];
    
    
    return YES;
}
#pragma mark - 设置统一的样式 -
- (void)setupAppStyle{
    [UINavigationBar appearance].backgroundColor = ThemeColor;
    
    
}
@end
